*** PROGRAM FOR SAVING ESTIMATES FOR OUTPUT TO LATEX TABLES *** 

cap program drop myeststo
program myeststo
	
	** Prob > F 
	estadd scalar pf = Ftail(`e(df_m)',`e(df_r)',`e(F)')
	** Number of units 
	estadd scalar units = `e(K1)'
	** Number of clusters 
	estadd scalar clusters = `e(N_clust)' 
	** First-stage F-stat 
	if "`e(widstat)'"!="" estadd scalar fsfstat = `e(widstat)' 
	** Estimates store 
	eststo 

end